<script setup>
import { onBeforeUnmount, onMounted } from 'vue'
import autofit from 'autofit.js'

// 大屏适配
onMounted(() => {
  autofit.init({
    dh: window.innerHeight,
    dw: window.innerWidth,
    el: '#app',
    resize: true
  }, false)
})

onBeforeUnmount(() => {
  autofit.off()
})
</script>

<template>
  <router-view />
</template>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 自定义顶部进度条颜色 */
#nprogress .bar {
  background: pink !important;
}
</style>